package com.xzy.spring.business.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xzy
 * @date 2021-02-08 11:05
 * 说明：
 */
@Data
@NoArgsConstructor
public class UserEntity {
    private String name;
    private Integer age;
    private Long createTime;

    public UserEntity(String name, Integer age) {
        this.name = name;
        this.age = age;
        this.createTime = System.currentTimeMillis();
        System.out.println("----> the bean（" + this.name + "） has been created！");
    }
}
